<?php
/**
 * Service.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-02-18 16:53:54
 * @modified    2023-02-18 16:53:54
 *
 */

namespace App\Models\WorkOrder\Receipt;

use App\Models\BaseModel;

class Service extends BaseModel
{
    protected $table = 'work_order_receipt_service';

    protected $appends = [
        'fee_format'
    ];

    protected $fillable = [
        'work_order_receipt_id',
        'name',
        'unit',
        'count',
        'fee'
    ];

    public function getFeeFormatAttribute()
    {
        return intval($this->fee);
    }
}